Read / write resource from / to relative path from source code or executable