I have not done it personally, but my best bet is:
Use !pet instead of !raw and only use lowercase letter in the names in the source code
Ensure all your .bin files are all capital letters (i.e. TILES.BIN ...)
It has something to do with the way acme converts ascii to petscii.
When you use the !pet keyword, acme will subtract 32 from all bytes, meaning that 'a' ascii val 97 becomes 'A' ascii and petscii val 65.
Next issue is that mac and linux (and the web emulator) are case sensitive so all your filenames need to use capital letters in order for your program to load them.